#include "syscall.h"

extern "C" int open(const char *name, int flags, int mode)
{
	int ret;
	__asm__ __volatile__(
		"int $0x90\t\n"
		"movl %%eax, %0"
		:"=a"(ret)
		:"a"(SYSCALL_OPEN), "b"(name), "c"(flags), "d"(mode)
	);

	return ret;
}

